home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / filutil / pagin501.zip / PAGDEMO.#1 < prev    next >
Text File  |  1994-12-11  |  2KB  |  74 lines

  1. # % PAGDEMO.#1
  2. # LENGTH=80
  3. # TITLE CENTER
  4. ^N (page ^B)
  5. (Source file created ^A, the paginated version created ^D)
  6.  
  7. # END
  8. # ALIGN
  9. This file demostrates some of the features of the PAGINATE program.
  10. There are a couple of sections of text here which are entered into
  11. the control file in simple free-form text.  Currently, we're displaying
  12. the text using "ALIGN LENGTH=50".  Now, let's change over to "justify
  13. length=45" and see how it looks...
  14.  
  15. # JUSTIFY
  16. Here we are, shifted over to justification instead of alignment.  Remember
  17. that justification makes the text line up on the right-hand margins
  18. whereas alignment doesn't.
  19.  
  20. (New paragraph here)  Another shift is about to happen here.  We're going
  21. to see how indentation can be used to show indented points.  This demo
  22. shows several features of the PAGINATE program including:
  23.  
  24. # INDENT 4-3
  25. * The use of ALIGN and PAGINATE.  These were already demonstrated.  Note
  26. that the lengths for the margins can be specified separately as necessary.
  27.  
  28. * The reading of ASCII-delimited text to create tables.  You can also read
  29. in dBase files if desired.
  30.  
  31. * The ability to sort the data.  Note that you don't really need to combine
  32. sorting with actual text.  You could use PAGINATE to just sort an entire data
  33. set (wouldn't be real efficient but it's free so why not).
  34.  
  35. # INDENT 0
  36. We're shifting over to show a table.  This table originally looked like this:
  37.  
  38. # VERBATIM
  39. # INCLUDE PAGDEMO.#1D
  40.  
  41. It's being processed by a field-definition file that looks like this:
  42.  
  43. # INCLUDE PAGDEMO.#1C
  44. # EJECT
  45. When you process the the file, you end up with a simple table that looks
  46. like this:
  47.  
  48. # HEADING
  49. ^H
  50.  
  51. # END
  52. # INDEF=PAGDEMO.#1C
  53. # FROM ASCII
  54. # INCLUDE PAGDEMO.#1D
  55. # FROM FIXED
  56. # JUSTIFY
  57.  
  58. Additionally, you can request that the routine sort the data for you.  This
  59. can be done sorting by columns or by variables.  In our case, we're going to
  60. sort the file based on the value in the first numeric column:
  61.  
  62. # SORT 2
  63. # FROM ASCII
  64. # INCLUDE PAGDEMO.#1D
  65. # SORT 0
  66. # FROM FIXED
  67. # JUSTIFY
  68.  
  69. Another example, this time with a descending sort based on the stub column.
  70.  
  71. # SORTD 1
  72. # FROM ASCII
  73. # INCLUDE PAGDEMO.#1D
  74.